package com.wayhome.springfarmework.beans.factory.support;

import com.wayhome.springfarmework.beans.BeansException;
import com.wayhome.springfarmework.core.io.Resource;
import com.wayhome.springfarmework.core.io.ResourceLoader;

import java.io.IOException;

public interface BeanDefinitionReader {

    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resource) throws BeansException;

    void loadBeanDefinitions(String path) throws BeansException, IOException;

    void loadBeanDefinitions(String... path) throws BeansException, IOException;

}
